package com.ajz.manager.entity;


import javax.persistence.Entity;


import com.ajz.common.entity.BaseEntity;

/**
 * 
 * <p>
 * 会员
 * </p>
 *
 * @author xyj
 * @date 2018年6月12日
 */
@Entity
public class Member extends BaseEntity<String>{
	/**
	 * 昵称
	 */
	private String name;
	/**
	 * 登录名
	 */
	private String loginName;
	/**
	 * 密码
	 */
	private String password;
	/**
	 * 头像
	 */
	private String portrait;
	/**
	 * 电话
	 */
	private Integer phone;
	/**
	 * 邮箱
	 */
	private String email;
	/**
	 * 微信
	 */
	private String wechat;
	/**
	 * qq
	 */
	private Integer qq;
	/**
	 * 账号状态（0：正常，1：冻结）
	 */
	private status status;
	
	public enum status {
		normal, frozen
	}
	/**
	 * 账号类型 0：业主1：工匠师傅
	 */
	private type type;

	public enum type {
		member, user
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPortrait() {
		return portrait;
	}

	public void setPortrait(String portrait) {
		this.portrait = portrait;
	}

	public Integer getPhone() {
		return phone;
	}

	public void setPhone(Integer phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getWechat() {
		return wechat;
	}

	public void setWechat(String wechat) {
		this.wechat = wechat;
	}

	public Integer getQq() {
		return qq;
	}

	public void setQq(Integer qq) {
		this.qq = qq;
	}

	public status getStatus() {
		return status;
	}

	public void setStatus(status status) {
		this.status = status;
	}

	public type getType() {
		return type;
	}

	public void setType(type type) {
		this.type = type;
	}
}
